package com.jims.api.v1.controller.doctor;

import com.jims.master.common.data.Message;
import com.jims.master.common.utils.SecurityUtil;
import com.jims.master.modules.weChatSweepPay.pay.HttpUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

/**
 * Created by Administrator on 2018/10/9.
 */
@RestController
@RequestMapping(value = "/doctorJob")
public class HealthOfDoctorJobController{

    /**
     * @Title: patVisitId
     * @Description: 获取转诊病人住院id
     * @param
     * @author WangYQ
     * @date 2018/10/09
     * @throws
     */
    @RequestMapping(value = "V100/patVisitId", method = {RequestMethod.GET, RequestMethod.POST})
    public String patVisitId(String url)throws UnsupportedEncodingException {
        url = URLDecoder.decode(url, "utf-8");
        url = url.replace("&amp;", "&");
        String s = HttpUtil.postData(url,"");
        return s;
    }
}
